package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单地址
 * </p>
 *
 * @author zlp
 * @since 2022-01-23
 */
@TableName("t_order_address")
public class OrderAddress extends Model<OrderAddress> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
                private Date createTime;
                private Date updateTime;
    /**
     * 订单id
     */
    @TableField("order_id")
                private Long orderId;
    /**
     * 订单唯一标识
     */
                private String orderSn;
    /**
     * 收货人
     */
                private String contacts;
    /**
     * 区域
     */
                private String areaCode;
    /**
     * 详细地址
     */
                private String address;
    /**
     * 全地址
     */
                private String fullAddress;
    /**
     * 手机号码
     */
                private String phone;
    /**
     * 备用手机号
     */
                private String phoneBack;
    /**
     * 固定电话
     */
                private String tel;
    /**
     * 邮编
     */
                private String postCode;
    /**
     * 电子邮件
     */
                private String email;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public Date getCreateTime(){
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime(){
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

    public Long getOrderId(){
            return orderId;
            }

        public void setOrderId(Long orderId) {
            this.orderId = orderId;
            }

    public String getOrderSn(){
            return orderSn;
            }

        public void setOrderSn(String orderSn) {
            this.orderSn = orderSn;
            }

    public String getContacts(){
            return contacts;
            }

        public void setContacts(String contacts) {
            this.contacts = contacts;
            }

    public String getAreaCode(){
            return areaCode;
            }

        public void setAreaCode(String areaCode) {
            this.areaCode = areaCode;
            }

    public String getAddress(){
            return address;
            }

        public void setAddress(String address) {
            this.address = address;
            }

    public String getFullAddress(){
            return fullAddress;
            }

        public void setFullAddress(String fullAddress) {
            this.fullAddress = fullAddress;
            }

    public String getPhone(){
            return phone;
            }

        public void setPhone(String phone) {
            this.phone = phone;
            }

    public String getPhoneBack(){
            return phoneBack;
            }

        public void setPhoneBack(String phoneBack) {
            this.phoneBack = phoneBack;
            }

    public String getTel(){
            return tel;
            }

        public void setTel(String tel) {
            this.tel = tel;
            }

    public String getPostCode(){
            return postCode;
            }

        public void setPostCode(String postCode) {
            this.postCode = postCode;
            }

    public String getEmail(){
            return email;
            }

        public void setEmail(String email) {
            this.email = email;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "OrderAddress{" +
                ", id=" + id +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", orderId=" + orderId +
                ", orderSn=" + orderSn +
                ", contacts=" + contacts +
                ", areaCode=" + areaCode +
                ", address=" + address +
                ", fullAddress=" + fullAddress +
                ", phone=" + phone +
                ", phoneBack=" + phoneBack +
                ", tel=" + tel +
                ", postCode=" + postCode +
                ", email=" + email +
        "}";
        }
        }
